package me.cangming.analytics.plugin

import com.android.build.gradle.AppExtension
import org.gradle.api.Plugin
import org.gradle.api.Project

/**
 * @date 创建时间：2019-09-10
 * @auther cangming
 * @Description  插件
 * @version 1.0.0
 */
class FixPlugin implements Plugin<Project> {

    @Override
    void apply(Project project) {
        AppExtension appExtension = project.extensions.findByType(AppExtension.class)
        appExtension.registerTransform(new CmHotFixTransform(project))
    }
}
